﻿using Application.AppService.ERAppService;
using Application.AppService.HFAppService;
using AutoMapper;
using Domain;
using Domain.Entity;
using Microsoft.AspNetCore.Mvc;

namespace UI.Controllers.Human_resource_file_management_人力资源档案管理_
{
	public class HFReviewController : Controller
	{
		private readonly IMapper mapper;
		private readonly IHFAppService hFAppService;

		public HFReviewController(IMapper mapper, IHFAppService hFAppService)
		{
			this.mapper = mapper;
			this.hFAppService = hFAppService;
		}
		public IActionResult Index()
		{
			return View();
		}
		public IActionResult Index1()
		{
			return View();
		}
		[HttpPost("HFFenYE")]
		public IActionResult HFFenYE(int page,int pageSize)
		{
			HFFenYE hFFenYE = hFAppService.FenYeHFAsync(1,page, pageSize);
			return Json(hFFenYE);
		}
		[HttpPost("UpdateHF")]
		public async Task<IActionResult> UpdateHF(HF hf)
		{
			bool rs =await hFAppService.UpdateHFAsync(hf);
			return Json(rs);
		}
	}
}
